import java.util.Random;
import java.util.Scanner;
public class questionE {
        public static void main(String[] args) {
            int[] numbers = new int[10];
            Random random = new Random();


            for (int i = 0; i < 10; i++) {
                numbers[i] = random.nextInt(101);
                System.out.print(numbers[i] + " ");
            }
            System.out.println() ;
            int max = numbers[0];
            int min = numbers[0];
            for (int i:numbers){
                if (i>max)
                    max=i;
                if (i<min)
                    min=i;

            }
            System.out.println("最大值: " + max);
            System.out.println("最小值: " + min);

        }
    }

